Skip to content

[c++] Limit batch scanner#614

Merged
fresh-borzoni merged 2 commits into
apache:mainfrom
fresh-borzoni:feat/cpp-batch-scanner
Jun 14, 2026
Merged

[c++] Limit batch scanner#614
fresh-borzoni merged 2 commits into
apache:mainfrom
fresh-borzoni:feat/cpp-batch-scanner

Conversation

@fresh-borzoni

@fresh-borzoni fresh-borzoni commented Jun 10, 2026

Copy link
Copy Markdown
Member

closes #615

C++ binding for the limit scan from #515. table.NewScan().Limit(n).CreateBucketBatchScanner(bucket, scanner) returns a BatchScanner with NextBatch(), CollectAllBatches() and Bucket(). It wraps the core LimitBatchScanner and hands the rows back as Arrow batches over the existing C Data Interface path, so there's little new plumbing.

@fresh-borzoni fresh-borzoni marked this pull request as draft June 10, 2026 15:05
@fresh-borzoni fresh-borzoni marked this pull request as ready for review June 10, 2026 15:17
@fresh-borzoni

Copy link
Copy Markdown
Member Author

@leekeiabstraction leekeiabstraction left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for the PR!

@charlesdong1991 charlesdong1991 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice! LGTM!! thanks again!

Comment thread crates/fluss/src/client/table/batch_scanner.rs
@fresh-borzoni fresh-borzoni force-pushed the feat/cpp-batch-scanner branch from cb1be34 to ca48d32 Compare June 14, 2026 00:35
@fresh-borzoni fresh-borzoni merged commit 8e3ed75 into apache:main Jun 14, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C++] Implement BatchScanner with limit-based scan

3 participants